package com.citasgoo.admin.dao;

import com.citasgoo.admin.entity.SysUser;
import com.citasgoo.admin.entity.SysUserPlus;
import com.citasgoo.admin.entity.SysUserQuery;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SysUserDao {
    int countByExample(SysUserQuery example);

    int deleteByExample(SysUserQuery example);

    int deleteByPrimaryKey(Integer id);

    int insert(SysUser record);

    int insertSelective(SysUser record);

    List<SysUser> selectByExample(SysUserQuery example);

    SysUser selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") SysUser record, @Param("example") SysUserQuery example);

    int updateByExample(@Param("record") SysUser record, @Param("example") SysUserQuery example);

    int updateByPrimaryKeySelective(SysUser record);

    int updateByPrimaryKey(SysUser record);

    SysUser findbyUsername(String username);

    List<SysUserPlus> findUserPlusByStatusIsTrueAndIsAccepted();
}